Optimal. Leaf size=80 \[ \frac {a^2 (e x)^n}{e n}-\frac {2 a b x^{-n} (e x)^n \tanh ^{-1}\left (\cosh \left (c+d x^n\right )\right )}{d e n}-\frac {b^2 x^{-n} (e x)^n \coth \left (c+d x^n\right )}{d e n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {5441, 5437, 3773, 3770, 3767, 8} \[ \frac {a^2 (e x)^n}{e n}-\frac {2 a b x^{-n} (e x)^n \tanh ^{-1}\left (\cosh \left (c+d x^n\right )\right )}{d e n}-\frac {b^2 x^{-n} (e x)^n \coth \left (c+d x^n\right )}{d e n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3767
Rule 3770
Rule 3773
Rule 5437
Rule 5441
Rubi steps
\begin {align*} \int (e x)^{-1+n} \left (a+b \text {csch}\left (c+d x^n\right )\right )^2 \, dx &=\frac {\left (x^{-n} (e x)^n\right ) \int x^{-1+n} \left (a+b \text {csch}\left (c+d x^n\right )\right )^2 \, dx}{e}\\ &=\frac {\left (x^{-n} (e x)^n\right ) \operatorname {Subst}\left (\int (a+b \text {csch}(c+d x))^2 \, dx,x,x^n\right )}{e n}\\ &=\frac {a^2 (e x)^n}{e n}+\frac {\left (2 a b x^{-n} (e x)^n\right ) \operatorname {Subst}\left (\int \text {csch}(c+d x) \, dx,x,x^n\right )}{e n}+\frac {\left (b^2 x^{-n} (e x)^n\right ) \operatorname {Subst}\left (\int \text {csch}^2(c+d x) \, dx,x,x^n\right )}{e n}\\ &=\frac {a^2 (e x)^n}{e n}-\frac {2 a b x^{-n} (e x)^n \tanh ^{-1}\left (\cosh \left (c+d x^n\right )\right )}{d e n}-\frac {\left (i b^2 x^{-n} (e x)^n\right ) \operatorname {Subst}\left (\int 1 \, dx,x,-i \coth \left (c+d x^n\right )\right )}{d e n}\\ &=\frac {a^2 (e x)^n}{e n}-\frac {2 a b x^{-n} (e x)^n \tanh ^{-1}\left (\cosh \left (c+d x^n\right )\right )}{d e n}-\frac {b^2 x^{-n} (e x)^n \coth \left (c+d x^n\right )}{d e n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.37, size = 87, normalized size = 1.09 \[ \frac {x^{-n} (e x)^n \left (2 a \left (a c+a d x^n+2 b \log \left (\tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )\right )\right )-b^2 \tanh \left (\frac {1}{2} \left (c+d x^n\right )\right )+b^2 \left (-\coth \left (\frac {1}{2} \left (c+d x^n\right )\right )\right )\right )}{2 d e n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.44, size = 854, normalized size = 10.68 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \operatorname {csch}\left (d x^{n} + c\right ) + a\right )}^{2} \left (e x\right )^{n - 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.77, size = 271, normalized size = 3.39 \[ \frac {a^{2} x \,{\mathrm e}^{\frac {\left (-1+n \right ) \left (-i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )+i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}+i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}-i \pi \mathrm {csgn}\left (i e x \right )^{3}+2 \ln \relax (x )+2 \ln \relax (e )\right )}{2}}}{n}-\frac {2 x \,x^{-n} b^{2} {\mathrm e}^{\frac {\left (-1+n \right ) \left (-i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )+i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}+i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}-i \pi \mathrm {csgn}\left (i e x \right )^{3}+2 \ln \relax (x )+2 \ln \relax (e )\right )}{2}}}{d n \left ({\mathrm e}^{2 c +2 d \,x^{n}}-1\right )}-\frac {4 \arctanh \left ({\mathrm e}^{c +d \,x^{n}}\right ) e^{n} a b \,{\mathrm e}^{\frac {i \pi \,\mathrm {csgn}\left (i e x \right ) \left (-1+n \right ) \left (\mathrm {csgn}\left (i e x \right )-\mathrm {csgn}\left (i x \right )\right ) \left (-\mathrm {csgn}\left (i e x \right )+\mathrm {csgn}\left (i e \right )\right )}{2}}}{d e n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.37, size = 109, normalized size = 1.36 \[ -2 \, a b {\left (\frac {e^{n - 1} \log \left ({\left (e^{\left (d x^{n} + c\right )} + 1\right )} e^{\left (-c\right )}\right )}{d n} - \frac {e^{n - 1} \log \left ({\left (e^{\left (d x^{n} + c\right )} - 1\right )} e^{\left (-c\right )}\right )}{d n}\right )} - \frac {2 \, b^{2} e^{n}}{d e n e^{\left (2 \, d x^{n} + 2 \, c\right )} - d e n} + \frac {\left (e x\right )^{n} a^{2}}{e n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.61, size = 160, normalized size = 2.00 \[ \frac {a^2\,x\,{\left (e\,x\right )}^{n-1}}{n}-\frac {4\,\mathrm {atan}\left (\frac {a\,b\,x\,{\mathrm {e}}^{d\,x^n}\,{\mathrm {e}}^c\,{\left (e\,x\right )}^{n-1}\,\sqrt {-d^2\,n^2\,x^{2\,n}}}{d\,n\,x^n\,\sqrt {a^2\,b^2\,x^2\,{\left (e\,x\right )}^{2\,n-2}}}\right )\,\sqrt {a^2\,b^2\,x^2\,{\left (e\,x\right )}^{2\,n-2}}}{\sqrt {-d^2\,n^2\,x^{2\,n}}}-\frac {2\,b^2\,x\,{\left (e\,x\right )}^{n-1}}{d\,n\,x^n\,\left ({\mathrm {e}}^{2\,c+2\,d\,x^n}-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (e x\right )^{n - 1} \left (a + b \operatorname {csch}{\left (c + d x^{n} \right )}\right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________